package cn.com.bluemoon.daps.model.core.file.report;

import cn.com.bluemoon.daps.model.core.file.IMetaData;
import lombok.Builder;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.util.List;

/**
 * @author Jarod.Kong
 * @date 2021/3/8 9:56
 */
@Builder
public class ImportBaseInfo {
    private String pageName;
    private Integer pageNo;
    private Integer total;
    private Integer errorSize;
    private List<IMetaData> errors;
    private Boolean result;

    public String getPageName() {
        return pageName;
    }

    public void setPageName(String pageName) {
        this.pageName = pageName;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getErrorSize() {
        return errorSize;
    }

    public void setErrorSize(Integer errorSize) {
        this.errorSize = errorSize;
    }

    public List<IMetaData> getErrors() {
        return errors;
    }

    public void setErrors(List<IMetaData> errors) {
        this.errors = errors;
    }

    public Boolean getResult() {
        return result;
    }

    public void setResult(Boolean result) {
        this.result = result;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("pageName", pageName)
                .append("pageNo", pageNo)
                .append("total", total)
                .append("errorSize", errorSize)
                .append("errors", errors)
                .append("result", result)
                .toString();
    }
}
